Skip to content

Respect reload cooldown even when segments were stripped#48

Merged
ryanbr merged 1 commit intomasterfrom
feat/respect-cooldown-on-stripped
Apr 7, 2026
Merged

Respect reload cooldown even when segments were stripped#48
ryanbr merged 1 commit intomasterfrom
feat/respect-cooldown-on-stripped

Conversation

@ryanbr
Copy link
Copy Markdown
Owner

@ryanbr ryanbr commented Apr 6, 2026

Change || to && so cooldown is always respected in the shouldReload condition. Previously hadStrippedSegments bypassed cooldown (always reloaded when segments were stripped). Now requires both conditions: segments stripped AND cooldown expired.

In the else block hadStrippedSegments is always true (CSAI-only path handles stripped=0). The || made cooldown irrelevant here — the && restores it as a consistent reload gate.

Change || to && so cooldown is always respected in the shouldReload
condition. Previously hadStrippedSegments bypassed cooldown (always
reloaded when segments were stripped). Now requires both conditions:
segments stripped AND cooldown expired.

In the else block hadStrippedSegments is always true (CSAI-only path
handles stripped=0). The || made cooldown irrelevant here — the &&
restores it as a consistent reload gate.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ryanbr ryanbr merged commit b1724db into master Apr 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant